<template>
  <div class="file-wrapper">
    <el-container class="el-container">
      <el-aside width="auto">
        <AsideMenu></AsideMenu>
      </el-aside>
      <el-container>
        <el-main class="el-main">
          <FileList></FileList>
        </el-main>
      </el-container>
      
      <!-- 上传组件 -->
 	 <global-uploader></global-uploader>
 	 <!-- 查看大图 -->
 	 <ImgReview></ImgReview>
 	 <!-- 视频组件 -->
 	 <!--<VideoPlayer></VideoPlayer>-->
     </el-container>
  </div>
</template>

<script>
import AsideMenu from './components/AsideMenu/AsideMenu.vue'
import FileList from './components/FileList/index.vue'
import globalUploader from './components/support/GlobalUploader.vue'
import ImgReview from './components/support/ImgReview.vue'

//import VideoPlayer from './components/support/DdPlayer';

//import { useRouter } from 'vue-router';
//import {onBeforeMount} from 'vue';

export default {
  name: 'File',
  components: {
    AsideMenu,
    FileList,
    globalUploader,
    ImgReview,
    //VideoPlayer
  },
  setup(){
  /*
  	onBeforeMount(async ()=>{
	  	useRouter().replace({
					path: '/wangpan',
					query: { fileType:'ALL',pid: null,},
				});
		this.$router.go(0);
		});
	*/
  },
}
</script>

<style lang="stylus" scoped>
@import './components/styles/varibles.styl'
@import './components/styles/mixins.styl'
.file-wrapper
  width 100% !important
.el-container
  .el-aside
    height calc(100vh - 61px)
    overflow hidden
.el-main
  padding 0px 16px !important
  overflow hidden
</style>
